﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace LevelEditor
{
    class Render2D
    {
        public static Render2D Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new Render2D();
                return _instance;
            }
        }

        public void init(Graphics g)
        {
            this.g = g;
        }

        public int Width
        {
            get
            {
                return width;
            }
        }

        public int Height
        {
            get
            {
                return height;
            }
        }


        public void draw()
        {
            g.Clear(Color.Black);
            g.Flush();
        }


        private static Render2D _instance;
        private Graphics g;
        private int width;
        private int height;
    }
}
